﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using System.Reflection;
using log4net;

namespace AnyOffice.general.system.bbs
{
    public partial class index :  ModulePage
    {
        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

      
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable table = new BbsBoardDao().SelectAll(base.Conn);
                if (table.Rows.Count > 0)
                {
                    this.rptBbs.DataSource = table;
                    this.rptBbs.DataBind();
                }
                else
                {
                    this.litMessage.Text = base.ShowMessage("尚未定义论坛");
                }
            }
            catch (Exception exception)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("", exception);
                }
            }
        }

 

 

    }
}
